<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of m_order
 *
 * @author Tuyet
 */
class M_order extends CI_Model {

    //put your code here
    public function __construct() {
        parent::__construct();
        $this->load->database();
    }

    public function insertorder($data) {
        if ($query = $this->db->insert('orders', $data)) {
            return TRUE;
        } else {
            return FALSE;
        }
    }

}

?>
